package com.hospital.schedule.module.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hospital.common.pojo.TDoctorInfo;
import com.hospital.schedule.module.mapper.TDoctorInfoMapper;
import com.hospital.schedule.module.service.ITDoctorInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 医生信息 服务实现类
 * </p>
 *
 * @author author
 * @since 2025-09-12
 */
@Service
public class TDoctorInfoServiceImpl extends ServiceImpl<TDoctorInfoMapper, TDoctorInfo> implements ITDoctorInfoService {
    @Autowired
    private TDoctorInfoMapper tDoctorInfoMapper;

    @Override
    public TDoctorInfo findDoctorByUserId(Long id) {
        return tDoctorInfoMapper.findDoctorByUserId(id);
    }

    @Override
    public List<Long> findDoctorInfoIdByDepartmentId(Long departmentId) {
        return tDoctorInfoMapper.findDoctorInfoIdByDepartmentId(departmentId);
    }
}
